import PgTab from "./pg-tab";
export function PgRender(domCollection: HTMLElement[], root: HTMLElement) {
  const oWraper: HTMLElement = document.createElement("div");
  const ofrag: DocumentFragment = document.createDocumentFragment(); // 文档碎片
  oWraper.className = "container";
  domCollection.forEach((it: HTMLElement) => {
    ofrag.appendChild(it);
  });
  oWraper.appendChild(ofrag);
  root.appendChild(oWraper);
}
export { PgTab };
